package com.ethan.minimalist.mvp.model

import com.cxz.kotlin.baselibs.mvp.BaseModel
import com.ethan.minimalist.http.MainRetrofit
import com.ethan.minimalist.bean.HttpResult
import com.ethan.minimalist.bean.UserBean
import com.ethan.minimalist.mvp.contract.IUpdateUserContract
import io.reactivex.Observable

/**
 * @author admin
 * @date 2018/11/20
 * @desc
 */
class UpdateUserModel : BaseModel(), IUpdateUserContract.Model {

    override fun update(username: String, password: String): Observable<HttpResult<UserBean>> {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }


    override fun logout(): Observable<HttpResult<Any>> {
        return MainRetrofit.service.logout()
    }

}